<?php if (!defined('THINK_PATH')) exit();?>﻿<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
          content="width=device-width, initial-scale=1, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！-->
    <title>学生惠后台管理系统</title>
    <link rel="stylesheet" href="/App/Admin/public/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="/App/Admin/public/css/style.css"/>
</head>
<body>
<div class="mainBody">
    
    
           <div class="mainNav">
        <div class="tit">学生惠后台管理系统</div>
        <div class="navList">
            <ul>
                <li class="active">
                    <a href="<?php echo U("Index/index");?>" class="link"><i class="iconFont left">&#xe602;</i>主页</a>
                </li>
                <li>
                    <a href="<?php echo U("Count/index");?>" class="link"><i class="iconFont left">&#xe750;</i>统计管理</a>
                </li>
                <li>
                    <a href="<?php echo U("Custom/index");?>" class="link"><i class="iconFont left">&#xe650;</i>用户管理</a>
                </li>
                <li>
                    <a href="<?php echo U("shopMange/index");?>" class="link"><i class="iconFont left">&#xe60d;</i>商家管理</a>
                </li>
                <li>
                    <a href="<?php echo U("Order/index");?>" class="link"><i class="iconFont left">&#xe663;</i>订单管理</a>
                </li>
                <li>
                    <a href="<?php echo U("Finance/index");?>" class="link"><i class="iconFont left">&#xe648;</i>财务管理</a>
                </li>
                <li>
                    <a href="<?php echo U("Packet/index");?>" class="link"><i class="iconFont left">&#xe6dc;</i>红包管理</a>
                </li>
                <li>
                    <a href="<?php echo U("Notice/index");?>" class="link"><i class="iconFont left">&#xe601;</i>惠通知</a>
                </li>
                <li>
                    <a href="<?php echo U("Old/index");?>" class="link"><i class="iconFont left">&#xe603;</i>闲置管理</a>
                </li>
                <li>
                    <a href="javascript:;" class="link show"><i class="iconFont left lineHei47">&#xe612;</i>兼职管理<i
                            class="iconFont right">&#xe62e;</i></a>
                    <div class="subNav">
                        <a href="<?php echo U("Job/index");?>">兼职管理</a>
                        <a href="<?php echo U("Jobwant/index");?>">求职管理</a>
                    </div>
                </li>
                <li>
                    <a href="javascript:;" class="link show"><i class="iconFont left lineHei47">&#xe632;</i>系统管理<i
                            class="iconFont right">&#xe62e;</i></a>
                    <div class="subNav">
                        <a href="<?php echo U("Set/index");?>">系统设置</a>
                        <a href="<?php echo U("News/index");?>">公告消息</a>
                        <a href="<?php echo U("Banner/index");?>">BANNER管理</a>
                        <a href="<?php echo U("Rule/index");?>">管理员账号</a>
                        <a href="<?php echo U("Area/index");?>">区域管理</a>
                        <a href="<?php echo U("Feed/index");?>">意见反馈</a>
                    </div>
                </li>
            </ul>
        </div>
    </div>
    
    
    
    <div class="main">
        
        
          <div class="mainTop">
            <a href="<?php echo U('Login/userlogout');?>" class="text"><i class="iconFont">&#xe66e;</i>退出</a>
            <span class="text"><i class="iconFont">&#xe60b;</i><?php echo ($admin_user_name); ?></span>
        </div>
        

        <div class="subNav">
            <span class="text"><i class="iconFont">&#xe600;</i>用户管理</span>
        </div>

        <div class="indexBox">
            <div class="con-det">
                <div class="row">
                    <div class="col-md-12">
                         <form action="<?php echo U('Custom/index');?>" method="post">
                            <table class="formTable">
                                <tbody><tr>
                                    <td class="name noBor">关键字</td>
                                    <td class="noBor">
                                        <input type="text"  name="sh_q"  value="<?php echo ($shArray["sh_q"]); ?>"  class="inp form-control" placeholder="手机号">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="name">历史消费金额</td>
                                    <td>
                                        <input type="text"  name="from_money"  value="<?php echo ($shArray['from_money']?$shArray['from_money']:''); ?>"  class="inp time form-control">
                                        <input type="text"  name="to_money"  value="<?php echo ($shArray['to_money']?$shArray['to_money']:''); ?>"  class="inp time form-control">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="name">历史订单数量</td>
                                    <td>
                                        <input type="text"   name="from_num"  value="<?php echo ($shArray['from_num']?$shArray['from_num']:''); ?>"  class="inp time form-control">
                                        <input type="text"   name="to_num"  value="<?php echo ($shArray['to_num']?$shArray['to_num']:''); ?>"   class="inp time form-control">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="name">区域</td>
                                    <td>
                                        
                                        
                                        <select  id="select_id5" class="inp address form-control" name="select_name5" >
                                              <option selected="selected" value=''>请选择</option>
                                              <?php if(is_array($listAddress) && !empty($listAddress) ): foreach($listAddress as $key=>$item): ?><option value="<?php echo ($item['id']); ?>" ><?php echo ($item['name']); ?></option><?php endforeach; else: endif; ?>
                                        </select>
                                        
                                        
                                        <select  id="select_id6"  class="inp address form-control"  name="select_name6" >
                                           <option selected="selected" value="">请选择</option>
                                        </select>
                                        
                                        
                                        <select id="select_id7"  class="inp address form-control"  name="select_name7" >
                                            <option selected="selected" value="">请选择</option>
                                        </select>
                                        
                                        
                                        
                                    </td>
                                </tr>
                                <tr>
                                    <td class="name">年级</td>
                                    <td>
                                        <select class="inp form-control" name="std_level">
                                            <option selected="selected"  value="">请选择</option>
                                              <?php if(is_array($std_level) && !empty($std_level) ): foreach($std_level as $key=>$item): ?><option value="<?php echo ($key); ?>" ><?php echo ($item); ?></option><?php endforeach; else: endif; ?>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="name">性别</td>
                                    <td>
                                       <select class="inp form-control" name="sex">
                                            <option selected="selected"  value="">请选择</option>
                                              <?php if(is_array($sex) && !empty($sex) ): foreach($sex as $key=>$item): ?><option value="<?php echo ($key); ?>" ><?php echo ($item); ?></option><?php endforeach; else: endif; ?>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="name"></td>
                                    <td>
                                        <button class="btn btn-primary blue" type="submit">查询</button>
                                    </td>
                                </tr>
                                </tbody></table>
                        </form>
                    </div>
                </div>

                <div class="mt40 listBox">
                    <div class="listScroll">
                        <table class="table table-striped">
                            <tr>
                                <th>手机号</th>
                                <th>姓名</th>
                                <th>注册时间</th>
                                <th>所在省</th>
                                <th>所在市</th>
                                <th>学校</th>
                                <th>年级</th>
                                <th>性别</th>
                                <th>历史订单金额</th>
                                <th>历史订单数量</th>
                                <th>发布求职次数</th>
                                <th>发布闲置次数</th>
                                <th>最近消费日期</th>
                                <th>操作</th>
                            </tr>
                            
                               <?php if(is_array($list) && !empty($list) ): foreach($list as $key=>$item): ?><tr>
                                <td><?php echo ($item["phone"]); ?></td>
                                <td><?php echo ($item["fullname"]); ?></td>
                                <td><?php echo (date('Y-m-d',$item["add_time"])); ?></td>  
                                <td><?php echo ($item["provin_name"]); ?></td>
                                <td><?php echo ($item["city_name"]); ?></td>
                                <td><?php echo ($item["school_name"]); ?></td>
                                <td>
                                    	
				     <?php if($item["std_level"] == 1 ): ?>一年级
					<?php elseif($item["std_level"] == 2): ?>
					二年级
				    <?php elseif($item["std_level"] == 3): ?>
					  三年级
				    <?php else: ?>
					    	四年级<?php endif; ?>
					
                                    
                                </td>
                                <td><?php if($item["sex"] == 1): ?>女<?php else: ?>男<?php endif; ?></td>
                                <td>￥<?php echo ($item["monetary"]); ?></td>  
                                <td><?php echo ($item["ordernum"]); ?></td> 
                                <td><?php echo ($item["jobwant_num"]); ?></td> 
                                <td><?php echo ($item["oldthing_num"]); ?></td> 
                                <td><?php echo (date('Y-m-d',$item["lastorder_time"])); ?></td>
                                <td>
                                    <a href="user-detail.html" class="btn btn-default btn-xs">详情</a>
                                    <a href="user-edit.html" class="btn btn-default btn-xs">编辑</a>
                                    <a href="javascript:;" class="btn btn-default btn-xs">禁用</a>
                                </td>
                            </tr><?php endforeach; else: endif; ?>
                        </table>
                    </div>
                    <nav aria-label="Page navigation">
                        <ul class="pagination fr">
                           <!--<li class="disabled">
                                <a href="#" aria-label="Previous">
                                    <span aria-hidden="true">&laquo;</span>
                                </a>
                            </li>
                            <li class="active"><a href="#">1</a></li>
                            <li><a href="#">2</a></li>
                            <li><a href="#">3</a></li>
                            <li><a href="#">4</a></li>
                            <li><a href="#">5</a></li>
                            <li>
                                <a href="#" aria-label="Next">
                                    <span aria-hidden="true">&raquo;</span>
                                </a>
                            </li>-->
                             <?php echo ($page); ?>
                        </ul>
                    </nav>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript" src="/App/Admin/public/js/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="/App/Admin/public/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/App/Admin/public/js/public.js"></script>


<script>
$("#select_id5").change(function(){
var checkValueOne=$("#select_id5").val(); //获取Select选择的Value
/*alert(checkValueOne);die();*/
/*alert(checkValueOne);die();*/
 $.post('<?php echo U('ShopMange/select_address');?>',{checkValueOne:checkValueOne},function(data){
               $("#select_id6").text(' ');
               $("#select_id6").append(data);
            
        });
});
</script>


<script>
$("#select_id6").change(function(){
var checkValueOne=$("#select_id6").val(); //获取Select选择的Value
/*alert(checkValueOne);die();*/
 $.post('<?php echo U('ShopMange/select_address');?>',{checkValueOne:checkValueOne},function(data){
               $("#select_id7").text(' ');
               $("#select_id7").append(data);
            
        });
});
</script>


</body>
</html>